package org.thread.test06.ts.demo05.t02;

/**
 * @author CSY
 * @date 2025 - 03 - 14
 */
public class MainTest {
    public static void main(String[] args) {
        Fruit fruit = new Fruit();

        Box box = new Box();

        BoyThread bt1 = new BoyThread(box,"张三");
        BoyThread bt2 = new BoyThread(box,"李四");
        BoyThread bt3 = new BoyThread(box,"王五");
        GirlThread gt1 = new GirlThread(box,"小花");
        GirlThread gt2 = new GirlThread(box,"小红");
        GirlThread gt3 = new GirlThread(box,"小爱");

        bt1.start();
        bt2.start();
        bt3.start();
        gt1.start();
        gt2.start();
        gt3.start();
    }
}
